package com.itheima.enumdemo;
//Enum

public enum Season {

     SPRING() {
        @Override
        public void sleep() {
            System.out.println("困");
        }
    },
   SUMMER(){
        @Override
        public void sleep() {
            System.out.println("打盹");
        }
    },
   AUTUMN("秋") {
        @Override
        public void sleep() {
            System.out.println("乏");
        }
    },
    WINTER(20) {
        @Override
        public void sleep() {
            System.out.println("眠");
        }
    };
    //成员变量
    private String name;
private int age;
    //构造方法

    Season() {
    }

    Season(String name) {
        this.name = name;
    }
    Season(int   age) {
        this.age = age;
    }
    //成员 方法
    public  void lang(){
        System.out.println("不管什么季节都得出去浪啊");
    }


    // 抽象 方法
    public abstract void sleep();
}
